//
//  QRCodeViewController.h
//  SYQRCodeDemo
//
//  Created by lcb on 15-1-9.
//  Copyright (c) 2015年 SY. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface QRCodeViewController : UIViewController

@property (nonatomic, copy) void (^QRCodeCancleBlock) (QRCodeViewController *);//扫描取消
@property (nonatomic, copy) void (^QRCodeSuncessBlock) (QRCodeViewController *,NSString *);//扫描结果
@property (nonatomic, copy) void (^QRCodeFailBlock) (QRCodeViewController *);//扫描失败

@end
/**
 //扫描二维码
 QRCodeViewController *qrcodevc = [[QRCodeViewController alloc] init];
 qrcodevc.QRCodeSuncessBlock = ^(QRCodeViewController *aqrvc,NSString *qrString){
 self.saomiaoLabel.text = qrString;
 [aqrvc dismissViewControllerAnimated:NO completion:nil];
 };
 qrcodevc.QRCodeFailBlock = ^(QRCodeViewController *aqrvc){
 self.saomiaoLabel.text = @"fail~";
 [aqrvc dismissViewControllerAnimated:NO completion:nil];
 };
 qrcodevc.QRCodeCancleBlock = ^(QRCodeViewController *aqrvc){
 [aqrvc dismissViewControllerAnimated:NO completion:nil];
 self.saomiaoLabel.text = @"cancle~";
 };
 [self presentViewController:qrcodevc animated:YES completion:nil];
*/